package com.example.springbootdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springbootdemo.vo.UserVo;

import java.util.List;
import java.util.Map;

/**
 * @author 84246
 */
public interface UserMapper extends BaseMapper<UserVo> {

    List<UserVo> getList(Map<String, Object> inputMap);

    int getCount(Map<String, Object> inputMap);

    int insertUser(UserVo userModel);

    /**
     * 本地用户登录
     *
     * @return 用户信息
     */
    UserVo login(UserVo userModel);

    /**
     * 第三方用户登录
     *
     * @return 用户信息
     */
    UserVo thirdPartyLogins(UserVo userModel);
}
